// app.ts
App({
  globalData: <any>{
    audioCtx: null as any, //音频实例化
    defaultAvatar: "/static/img/home/avatar1.png",
    // 用户信息
    userInfo: {
      avatar: "/static/img/home/avatar1.png", //头像
      phone: "", //手机号
    },
    CurrentPage: "",

    // 请求地址
    api_url: 'https://caca.zn-care.com/api',
    token: '',

    // 指南
    guideList: [],

    // 上传文件的解析数据
    caseUploadFileContent: {}
  },
  
  async onLaunch() {
    const logs = wx.getStorageSync('logs') || []
    logs.unshift(Date.now())
    wx.setStorageSync('logs', logs)
    this.globalData.userInfo.phone = wx.getStorageSync('phone') || ""
  },
})